'use strict';

const Controller = require('egg').Controller;

class RegisterController extends Controller {
  async index() {
    const { ctx } = this;
    let params = ctx.request.body
    let obj = {
      accound: params.accound,
      pwd: params.pwd,
      id: (new Date().getTime()).toString()
    }
    let result = await ctx.service.user.register.index(obj)
    ctx.body = {
      data: result
    };
  }
}

module.exports = RegisterController;
